const state = {
  login: window.localStorage.getItem('login') || 0
}

const mutations = {
  setLogin (state, { login }) {
    state.login = login
    window.localStorage.setItem('login', login)
  }
}

const actions = {}

const getters = {
  getLogin: state => state.login
}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
